package com.healthy.reminders.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.healthy.reminders.mapper.PlanProgressMapper;
import com.healthy.reminders.domain.PlanProgress;
import com.healthy.reminders.service.IPlanProgressService;

/**
 * 追踪计划Service业务层处理
 * 
 * @author 束伟
 * @date 2024-03-29
 */
@Service
public class PlanProgressServiceImpl implements IPlanProgressService 
{
    @Autowired
    private PlanProgressMapper planProgressMapper;

    /**
     * 查询追踪计划
     * 
     * @param id 追踪计划主键
     * @return 追踪计划
     */
    @Override
    public PlanProgress selectPlanProgressById(Long id)
    {
        return planProgressMapper.selectPlanProgressById(id);
    }

    /**
     * 查询追踪计划列表
     * 
     * @param planProgress 追踪计划
     * @return 追踪计划
     */
    @Override
    public List<PlanProgress> selectPlanProgressList(PlanProgress planProgress)
    {
        return planProgressMapper.selectPlanProgressList(planProgress);
    }

    /**
     * 新增追踪计划
     * 
     * @param planProgress 追踪计划
     * @return 结果
     */
    @Override
    public int insertPlanProgress(PlanProgress planProgress)
    {
        return planProgressMapper.insertPlanProgress(planProgress);
    }

    /**
     * 修改追踪计划
     * 
     * @param planProgress 追踪计划
     * @return 结果
     */
    @Override
    public int updatePlanProgress(PlanProgress planProgress)
    {
        return planProgressMapper.updatePlanProgress(planProgress);
    }

    /**
     * 批量删除追踪计划
     * 
     * @param ids 需要删除的追踪计划主键
     * @return 结果
     */
    @Override
    public int deletePlanProgressByIds(Long[] ids)
    {
        return planProgressMapper.deletePlanProgressByIds(ids);
    }

    /**
     * 删除追踪计划信息
     * 
     * @param id 追踪计划主键
     * @return 结果
     */
    @Override
    public int deletePlanProgressById(Long id)
    {
        return planProgressMapper.deletePlanProgressById(id);
    }
}
